package com.yanqu.road.entity.message;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_s_user_chat_control")
public class BanChatUserData extends DataObject {
    @FieldTypeAnnotation(desc = "玩家id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "消息类型", isIndex = true)
    private int messageType;
    @FieldTypeAnnotation(desc = "服务器id")
    private long serverId;
    @FieldTypeAnnotation(desc = "渠道")
    private int channelId;
    @FieldTypeAnnotation(desc = "聊天屏蔽时间段startSecond-endSecond|startSecond-endSecond|...")
    private String hiddenTimeParam = "";
    @FieldTypeAnnotation(desc = "静默结束时间")
    private long silenceEndTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public BanChatUserData(long userId, int messageType) {
        this.userId = userId;
        this.messageType = messageType;
    }

    public String getHiddenTimeParam() {
        return hiddenTimeParam;
    }

    public void setHiddenTimeParam(String hiddenTimeParam) {
        this.hiddenTimeParam = hiddenTimeParam;
    }

    public long getSilenceEndTime() {
        return silenceEndTime;
    }

    public void setSilenceEndTime(long silenceEndTime) {
        this.silenceEndTime = silenceEndTime;
    }
}
